#include "shm.hpp"

int main()
{
    Shm s;
    s.Get();
    s.Attch();

    char *shm_start = (char *)s.Addr();
    int size = s.Size();
    int index = 0;
    while (true)
    {
        std::cout << "Please Enter@ ";
        std::cin >> *shm_start;
        // *(shm_start + index) = ch;
        // shm_start[index++] = ch;
        shm_start++;

        index %= size;
        // sleep(1);
    }
    s.Detach();
    return 0;
}